package com.jzo2o.customer.controller.operation.listener;

import com.jzo2o.customer.constants.RabbitMqConstant;
import com.jzo2o.customer.model.dto.request.WorkerCertificationAuditAddReqDTO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.core.ExchangeTypes;
import org.springframework.amqp.rabbit.annotation.Exchange;
import org.springframework.amqp.rabbit.annotation.Queue;
import org.springframework.amqp.rabbit.annotation.QueueBinding;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 *  服务人员认证监听器
 *
 * @Author mr.luo
 * @Date 01 7月 2025 21:03
 */
@Component
@Slf4j
public class WorkerListener {

    @RabbitListener(bindings = @QueueBinding(
            value = @Queue(value = RabbitMqConstant.WORKER_WAARMERKING_QUEUE,durable = "true"),
            exchange = @Exchange(value = RabbitMqConstant.WORKER_WAARMERKING_EXCHANGE ,type = ExchangeTypes.DIRECT),
            key = RabbitMqConstant.WORKER_WAARMERKING_KEY
    ))
    public void workerWaarmerkingListener(WorkerCertificationAuditAddReqDTO dto) {
        log.info("监听到消息:{}",dto);



    }
}
